const express = require('express');
const router = express.Router();
const pageController = require('../controllers/pageController');
const auth = require('../middlewares/auth');

// 读取页面配置
router.get('/', auth, pageController.getPage);
// 保存页面配置
router.post('/', auth, pageController.savePage);

module.exports = router; 